package com.lovo.cloud.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lovo.cloud.model.dos.Order2DO;
import com.lovo.cloud.dao.Order2DAO;
import com.lovo.cloud.service.Order2Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author luo
 * @since 2020-12-09
 */
@Service
public class Order2ServiceImpl extends ServiceImpl<Order2DAO, Order2DO> implements Order2Service {

    @Resource
    private Order2DAO order2DAO;

    @Override
    public List<Order2DO> findAll() {
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.like("order_name","%%");
        return order2DAO.selectList(wrapper);
    }
}
